/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

/**
 *
 * @author Kawe Ramon
 */
public abstract class CursoDAOFactory {
    
    
    private static final int ARQUIVO = 2;
    private static final int BD = 1;
    
    
    public abstract CursoDAO cursoDAOFactory(int tipo);
    

    public static CursoDAOFactory getCursoDAOFactory(int tipoPersistencia){
        
        switch(tipoPersistencia){
            
            case BD: 
                return CursoDAOBDFactory.getInstance();
                
            case ARQUIVO:
                return CursoDAOArquivoFactory.getInstance();
                
            default: return null;    
        }
        
    }
    
    
}
